﻿namespace TMSIM.Client.CM.UI.MainFrm
{
    public partial class MainForm : MenuForm
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private bool m_bIsActived = true;
        /// <summary>
        /// 指示当前窗体是否处于活动状态 
        /// </summary>
        public bool IsActived
        {
            get { return m_bIsActived; }
        }
      
        protected override void OnResize(System.EventArgs e)
        {
            if (this.WindowState == System.Windows.Forms.FormWindowState.Minimized)
            {
                m_bIsActived = false;
            }
            else if (this.WindowState == System.Windows.Forms.FormWindowState.Normal |
                this.WindowState == System.Windows.Forms.FormWindowState.Maximized)
            {
                m_bIsActived = true;
            }
            base.OnResize(e);
        }

        private void main_top_Click(object sender, System.EventArgs e)
        {

        }
    }
}